package com.ys.web.user.complain.service;

import com.ys.web.user.complain.po.ComplainPO;

import java.util.List;
import java.util.Map;

/**
 * @author quxinjun
 * @version 1.0.0
 * @ClassName ComplainService.java
 * @Description 投诉 service
 * @createTime 2021年05月24日 10:41:00
 */
public interface ComplainService {

    /**
     * @title getCauseList
     * @description 获取投诉原因列表
     * @author quxinjun
     * @updateTime 2021/5/24 11:50
     * @return: java.util.Map<java.lang.Integer, java.lang.String>
     */
    List<Map<String, Object>> getCauseList();

    /**
     * @param uid        用户id
     * @param complainPO
     * @title addComplain
     * @description 添加投诉
     * @author quxinjun
     * @updateTime 2021/5/24 11:50
     */
    void addComplain(Long uid, ComplainPO complainPO);

    List<ComplainPO> complainList(Long uid);

    int complainDel(Long uid, long complainId);
}
